/*
 * @Author: wangyongcun@persagy.com
 * @Date: 2025-03-02 20:26:58
 * @LastEditTime: 2025-03-06 20:50:16
 * @FilePath: \vite-admin\src\store\index.ts
 * @Description: 全局注册store
 *
 */
import type { App } from "vue";
import { createPinia } from "pinia";

const store = createPinia();

// 全局注册 store
export function setupStore(app: App<Element>) {
  app.use(store);
}

// 导出 store 实例
export * from "./modules/appSetting";
export * from "./modules/user";

export { store };
